Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(vaccination report): Apps connected to EPS can submit a vaccinatio… #651

Merged
merged 4 commits into from
Mar 7, 2022

Conversation

jekutzsche
Copy link
Member

@jekutzsche jekutzsche commented Mar 2, 2022

…n report via the JSON-RPC method submitVaccinationInfoList. The information is saved and made available to health department staff via the front end.

Refs iris-connect/iris-backlog#274

@jekutzsche jekutzsche requested a review from lucky-lusa March 2, 2022 19:56
@jekutzsche jekutzsche force-pushed the feature/BL274-Submit_Vaccination_Info_List branch from 6fa4277 to a53289a Compare March 3, 2022 13:16
@jekutzsche jekutzsche marked this pull request as ready for review March 3, 2022 13:17

try {

var number = util.parse(text, "DE");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So we are only checking for DE numbers. We should enforce the country code by regex and validate against the correct country. There will be employees with foreign country phone numbers.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, we do not check only for DE. This "DE" parameter is the default Region and is used if the number without country code.

From JavaDoc of the parse method:

defaultRegion: region that we are expecting the number to be from. This is only used if the number being parsed is not written in international format. The country_code for the number in this case would be stored as that of the default region supplied. If the number is guaranteed to start with a '+' followed by the country calling code, then RegionCode.ZZ or null can be supplied.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have added valid non-German phone numbers with country code in the test.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you. Nevertheless we should enforce the country code by regex I think.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we allow numbers without country code they will be used as "DE". This will lead to inaccuracies if numbers from other countries are entered without country code.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Regex? Oh my God, no way! I prefer to do it differently. ;)

@jekutzsche jekutzsche requested a review from lucky-lusa March 3, 2022 19:12
@jekutzsche jekutzsche changed the title feat(vaccination info): Apps connected to EPS can submit a vaccinatio… feat(vaccination report): Apps connected to EPS can submit a vaccinatio… Mar 3, 2022
lucky-lusa
lucky-lusa previously approved these changes Mar 7, 2022
Base automatically changed from feature/BL273-Announce_Vaccination_Info_List to develop March 7, 2022 07:51
…n information lists via the JSON-RPC method `submitVaccinationInfoList`. The information is saved and made available to health department staff via the front end.

Refs iris-connect/iris-backlog#274
@jekutzsche jekutzsche force-pushed the feature/BL274-Submit_Vaccination_Info_List branch from 8a9d5e8 to a732cd7 Compare March 7, 2022 08:21
@jekutzsche jekutzsche requested a review from lucky-lusa March 7, 2022 08:21
@github-actions
Copy link

github-actions bot commented Mar 7, 2022

Unit Test Results

  40 files  +  2    40 suites  +2   3m 3s ⏱️ -40s
228 tests +30  228 ✔️ +30  0 💤 ±0  0 ±0 

Results for commit 5bc53f7. ± Comparison against base commit c38078a.

This pull request removes 6 and adds 36 tests. Note that renamed tests count towards both.
iris.client_bff.vaccination_info.eps.VaccinationInfoControllerIntegrationTest ‑ announceVaccinationInfoList_InvalidBase64PublicKey_ReturnsValidationErrors
iris.client_bff.vaccination_info.eps.VaccinationInfoControllerIntegrationTest ‑ announceVaccinationInfoList_InvalidJson_ReturnsValidationErrors{String, String, String}[1]
iris.client_bff.vaccination_info.eps.VaccinationInfoControllerIntegrationTest ‑ announceVaccinationInfoList_InvalidJson_ReturnsValidationErrors{String, String, String}[2]
iris.client_bff.vaccination_info.eps.VaccinationInfoControllerIntegrationTest ‑ announceVaccinationInfoList_InvalidJson_ReturnsValidationErrors{String, String, String}[3]
iris.client_bff.vaccination_info.eps.VaccinationInfoControllerIntegrationTest ‑ announceVaccinationInfoList_InvalidPublicKey_Returns500
iris.client_bff.vaccination_info.eps.VaccinationInfoControllerIntegrationTest ‑ announceVaccinationInfoList_ValidJson_ReturnsEncryptedTokens
iris.client_bff.core.validation.PhoneNumberTests ‑ validate_withInvalidValue_getViolations{String}[10]
iris.client_bff.core.validation.PhoneNumberTests ‑ validate_withInvalidValue_getViolations{String}[11]
iris.client_bff.core.validation.PhoneNumberTests ‑ validate_withInvalidValue_getViolations{String}[12]
iris.client_bff.core.validation.PhoneNumberTests ‑ validate_withInvalidValue_getViolations{String}[13]
iris.client_bff.core.validation.PhoneNumberTests ‑ validate_withInvalidValue_getViolations{String}[14]
iris.client_bff.core.validation.PhoneNumberTests ‑ validate_withInvalidValue_getViolations{String}[1]
iris.client_bff.core.validation.PhoneNumberTests ‑ validate_withInvalidValue_getViolations{String}[2]
iris.client_bff.core.validation.PhoneNumberTests ‑ validate_withInvalidValue_getViolations{String}[3]
iris.client_bff.core.validation.PhoneNumberTests ‑ validate_withInvalidValue_getViolations{String}[4]
iris.client_bff.core.validation.PhoneNumberTests ‑ validate_withInvalidValue_getViolations{String}[5]
…

@jekutzsche jekutzsche merged commit 72b1f74 into develop Mar 7, 2022
@jekutzsche jekutzsche deleted the feature/BL274-Submit_Vaccination_Info_List branch March 7, 2022 08:46
jekutzsche pushed a commit that referenced this pull request Mar 9, 2022
# [1.5.0-rc.1](v1.4.1...v1.5.0-rc.1) (2022-03-09)

### Bug Fixes

* Adds grpc server to client EPS. Still not reachable from outside, but necessary for communication between health departments. ([679c08e](679c08e)), closes [#637](#637)
* Fixes an error when changing user data (IllegalStateException: Cannot convert value of type 'java.lang.String' […] no matching editors or conversion strategy found). ([58b3d42](58b3d42))

### Features

* Adds a hint to search for hd-contacts by postal code or city into the message input frontend. ([032a648](032a648)), closes [#632](#632) [#636](#636)
* Displays meta-data (who and when created/last modified an entity) on event-tracking, index-tracking and user detail pages. ([da1b7a6](da1b7a6)), closes [iris-connect/iris-backlog#234](https://github.com/iris-connect/iris-backlog/issues/234) [#638](#638)
* **vaccination report:** Apps connected to EPS can announce the submission of a vaccination report via the JSON-RPC method `announceVaccinationInfoList`. A transmission channel is then opened briefly for the respective user of the app. ([c38078a](c38078a)), closes [iris-connect/iris-backlog#273](https://github.com/iris-connect/iris-backlog/issues/273) [#635](#635)
* **vaccination report:** Apps connected to EPS can submit a vaccination report via the JSON-RPC method `submitVaccinationInfoList`. The information is saved and made available to health department staff via the front end. ([72b1f74](72b1f74)), closes [iris-connect/iris-backlog#274](https://github.com/iris-connect/iris-backlog/issues/274) [#651](#651)
* **vaccination report:** There is a new view in the front end with an overview of submitted vaccination reports. In the details view of a vaccination report, the submitted persons are displayed with their vaccination status. ([00e93e8](00e93e8)), closes [iris-connect/iris-backlog#275](https://github.com/iris-connect/iris-backlog/issues/275) [#629](#629)
@jekutzsche
Copy link
Member Author

🎉 This PR is included in version 1.5.0-rc.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

jekutzsche pushed a commit that referenced this pull request Mar 16, 2022
# [1.5.0](v1.4.1...v1.5.0) (2022-03-16)

### Bug Fixes

* Adds grpc server to client EPS. Still not reachable from outside, but necessary for communication between health departments. ([679c08e](679c08e)), closes [#637](#637)
* Fixes an error when changing user data (IllegalStateException: Cannot convert value of type 'java.lang.String' […] no matching editors or conversion strategy found). ([58b3d42](58b3d42))

### Features

* Adds a hint to search for hd-contacts by postal code or city into the message input frontend. ([032a648](032a648)), closes [#632](#632) [#636](#636)
* Displays meta-data (who and when created/last modified an entity) on event-tracking, index-tracking and user detail pages. ([da1b7a6](da1b7a6)), closes [iris-connect/iris-backlog#234](https://github.com/iris-connect/iris-backlog/issues/234) [#638](#638)
* **Docker Compose:** Adds scope labels to the services in the Docker Compose file to avoid conflicts with possibly existing other instances of Watchtower on the same Docker host. ([499267f](499267f)), closes [#666](#666)
* **Messages:** Uses `_ping` and the EPS version check when building the recipient list to determine if a health department is able to receive messages. This avoids additional configuration and enables faster propagation of the feature. ([446da17](446da17)), closes [#668](#668)
* **vaccination report:** Apps connected to EPS can announce the submission of a vaccination report via the JSON-RPC method `announceVaccinationInfoList`. A transmission channel is then opened briefly for the respective user of the app. ([c38078a](c38078a)), closes [iris-connect/iris-backlog#273](https://github.com/iris-connect/iris-backlog/issues/273) [#635](#635)
* **vaccination report:** Apps connected to EPS can submit a vaccination report via the JSON-RPC method `submitVaccinationInfoList`. The information is saved and made available to health department staff via the front end. ([72b1f74](72b1f74)), closes [iris-connect/iris-backlog#274](https://github.com/iris-connect/iris-backlog/issues/274) [#651](#651)
* **vaccination report:** There is a new view in the front end with an overview of submitted vaccination reports. In the details view of a vaccination report, the submitted persons are displayed with their vaccination status. ([00e93e8](00e93e8)), closes [iris-connect/iris-backlog#275](https://github.com/iris-connect/iris-backlog/issues/275) [#629](#629)
@jekutzsche
Copy link
Member Author

🎉 This PR is included in version 1.5.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants